package org.lt.resume.controller.user;

import java.util.List;

import org.apache.struts2.json.annotations.JSON;
import org.lt.resume.service.userserviceInterface.UserServiceInterface;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class SearchUserController extends ActionSupport {

	/** **/
	private static final long serialVersionUID = 4939763308056927234L;

	private String currentPage;

	private List items;

	private UserServiceInterface userservice;

	@Override
	public String execute() throws Exception {
		int currentNumber = Integer.valueOf(currentPage);
		items = userservice.seachUser(currentNumber);

		return Action.SUCCESS;
	}

	@JSON(name="items")
	public List getItems() {
		return items;
	}
	
	public void setItems(List items) {
		this.items = items;
	}
	
	public void setCurrentPage(String currentPage) {
		this.currentPage = currentPage;
	}


	public void setUserservice(UserServiceInterface userservice) {
		this.userservice = userservice;
	}

}
